package com.info.zhiduoduo.common.excelconverter;

import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.enums.CellDataTypeEnum;
import com.alibaba.excel.metadata.CellData;
import com.alibaba.excel.metadata.GlobalConfiguration;
import com.alibaba.excel.metadata.property.ExcelContentProperty;

/**
 * @program: zhiduoduo
 * @author: LiTong
 * @create: 2020-11-09 15:24
 **/
public class PayTypeConverter implements Converter<Integer> {
    @Override
    public Class supportJavaTypeKey() {
        return null;
    }

    @Override
    public CellDataTypeEnum supportExcelTypeKey() {
        return null;
    }

    @Override
    public Integer convertToJavaData(CellData cellData, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception {
        return null;
    }

    @Override
    public CellData convertToExcelData(Integer value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) throws Exception {
        if (value == null) {
            return new CellData("");
        } else if (value == 1) {
            return new CellData("得仕九歌商户号代付");
        } else if (value == 2) {
            return new CellData("线下支付");
        } else if (value == 3) {
            return new CellData("企业商户号支付");
        } else if (value == 4) {
            return new CellData("平台线下支付");
        } else if (value == 5) {
            return new CellData("得仕武圣商户号代付");
        } else if (value == 6) {
            return new CellData("传化武圣商户号代付");
        } else if (value == 7) {
            return new CellData("得仕智圣商户号代付");
        } else if (value == 8) {
            return new CellData("传化信圣商户号代付");
        } else if (value == 9) {
            return new CellData("得仕信圣商户号代付");
        } else if (value == 10) {
            return new CellData("招商银行九歌代付");
        } else if (value == 11) {
            return new CellData("得仕英圣商户号代付");
        } else if (value == 12) {
            return new CellData("招商银行信圣代付");
        } else if (value == 13) {
            return new CellData("招商银行智圣代付");
        } else if (value == 14) {
            return new CellData("招商银行法圣代付");
        } else if (value == 15) {
            return new CellData("传化智圣商户号代付");
        } else if (value == 16 ){
            return new CellData("传化九歌商户号代付");
        } else if (value == 17 ){
            return new CellData("招商银行明圣代付");
        } else if (value == 18 ){
            return new CellData("招商银行秀圣代付");
        } else if (value == 19 ){
            return new CellData("招商银行美圣代付");
        } else if (value == 20 ){
            return new CellData("招商银行英圣代付");
        } else if (value == 21 ){
            return new CellData("招商银行四如代付");
        } else if (value == 22 ){
            return new CellData("招商银行如山代付");
        } else if (value == 23 ){
            return new CellData("招商银行河南冉澄代付");
        } else if (value == 24 ){
            return new CellData("招商银行如火代付");
        } else if (value == 25 ){
            return new CellData("招商银行如风代付");
        } else if (value == 31 ){
            return new CellData("支付宝四如代付");
        } else if (value == 32 ){
            return new CellData("支付宝智圣代付");
        } else if (value == 33 ){
            return new CellData("支付宝明圣代付");
        } else if (value == 34 ){
            return new CellData("支付宝信圣代付");
        } else if (value == 35 ){
            return new CellData("支付宝如山代付");
        } else if (value == 41 ){
            return new CellData("平安银行如山代付");
        } else if (value == 42 ){
            return new CellData("平安银行河南冉澄代付");
        } else {
            return new CellData("");
        }
    }

}
